package com.csst.action;

import org.springframework.stereotype.Controller;

import com.opensymphony.xwork2.ActionSupport;

@Controller
public class PayAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8443654579180726975L;
	private String optionsRadios;
	
	public String getOptionsRadios() {
		return optionsRadios;
	}


	public void setOptionsRadios(String optionsRadios) {
		this.optionsRadios = optionsRadios;
	}


	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		if(optionsRadios.equals("option1"))
		{
			return "alipay";
		}
		else if(optionsRadios.equals("option2"))
		{
			return "cardpay";
		}
		else if(optionsRadios.equals("option3"))
		{
			return "bankpay";
		}
		return "fail";
	}
	

}
